//
//  QRScanVCViewController.swift
//  Community
//
//  Created by Vampire on 2019/8/2.
//  Copyright © 2019 ZKJ. All rights reserved.
//

import UIKit

class QRScanVC: LBXScanViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.navTitle = ""
        self.navBar?.backgroundColor = UIColor.init(r: 39, g: 39, b: 37).withAlphaComponent(0.8)
        self.backBtn?.setImage(UIImage(named: "white_return"), for: .normal)
        
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        qRScanView?.frame = CGRect(x: 0, y: AllTopNavHeight, width: MAINWIDTH, height: MAINHEIGHT - AllTopNavHeight)
    }
    
    override func handleCodeResult(arrayResult: [LBXScanResult]) {
        let result = arrayResult[0]
        let content = result.strScanned
        
        print(message: content)
    }

}
